package com.lemon.springboot;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@MapperScan("com.lemon.springboot.dao") // 扫描dao层接口的注解
//@EnableTransactionManagement // 开启事物支持
//@ServletComponentScan(basePackages = {"com.lemon.springboot.servlet", "com.lemon.springboot.filter"}) // 扫描开启servlet注解的
public class SpringbootWebApplication {
    public static void main(String[] args) {
        SpringApplication.run(SpringbootWebApplication.class, args);
    }
}
